{
	name:"Ellipse",
	tool:"./paint_tool/circles/ellipse.shape",
	onInit(){
		this.stepSize=2
		this.moveSize=1
		this.ctrlIndex = 1
	},
	onClick(pos){
		let step = this.step
			step.push(pos)

		if(step.length>=this.stepSize){
			this.step.last().ctrl=true
			this.commit(this.name)
		}else
			this.point(this.newPoint(pos))
	},
	onMousemove(pos){
		if(this.step.length>=this.moveSize)
			this.refresh(pos)
	}
}